package com.learn.mybatis;

import com.learn.mybatis.springboot.config.SingleConfiguration;
import com.learn.mybatis.springboot.config.BatchConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringBootMybatisApplicationTestsTest  {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(BatchConfiguration.class);
        String[] beanDefinitionNames = context.getBeanDefinitionNames();
        for (String beanDefinitionName:beanDefinitionNames) {

            System.out.println("beanDefinitionName" + beanDefinitionName);
        }
    }

    private static void extracted() {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SingleConfiguration.class);
        Object person = context.getBean("person");
        System.out.println("person" + person);
    }
}